changed domainkey handling with mdata