watchdog refactoring
add debug flags to .ino