add watchdog feature, not debug

add watchdog and sleep mode, but not debug