fix some startup scripts