fixes some migration stuff