added auto-logging from startup