very minor changes to get_all