added sorting ability to res locs, goals, and preqs
updated migration