added getMacKey()