instantiate rpc