added check to autostart