added watchdog to main sketch