fix get_items to work with lms env