improve serial port selection