remove all public key stuff