fix startup scripts