prepare to migrate