some error checking for restart