server updated to use serial port