added rpc authentication