solving the migration stuff