add watchdog for loggin