fixes to startup scripts