removed console.logs
improved migration system to allow sorting on runtime