improve rpc