improved migrations