add restart and migrate tasks