preparing for the migration