fixed problems with startup file
minor mods to startup script