updated example, serialport version