fixed getCommPorts