remove old code for restart