reworked startup scripts