prepare for handover