serial ports as streams