prepare for restart functionality