adding and removing public keys