tweaked the autostart script