added serial port control