added rpc/publicKey methods