add mac-cfg for mac