fix serial port support