added serial port with gtk compatibility