final cleanup of scripts for restart support