added watchdog handling (~1s)