set up the serial communication