serial port is not in a separate thread anymore