fixed the shutdown startup scripts