change to use portName for Mac also