add set_inventory_handler