added debug logging for autostart
improved status output: now it includes autostart status