interface with serial port