bug fixes - new system for inventories