prepare for upgrade