add loadIds method