added keyAD incl- masterkey compability