fixed up the startup script