updated the serial protocol