making restore_itemtypes consistent with using check_itemtype