more functionality for authenticating and private key retrieval