add a serial print debug mode