fixing restart scripts.