modified load_items to return a dict