added the ability to output to serial, this will be used to send out analytics