changed the watchdog open in main