adding the watchdog