set up serial communication