fixed serial port problems