prepare for migration