added checkbox for autostart