moved serialport stuff