Expand serial port api