added watchdog thing