adding a watchdog