change to print debug messages on serial only when SDEBUG is defined