serial port initialization