added authentication rpc method