better command handling of inventory