added argument instance_id to item_* functions