add mac to port functions