refactored migrations