a few more fixes for startup scripts