update serialport class