small optimizations on the startup scripts