adding serial port handler