added get_objects_by_id util function