improved new public key management