modified autostart