add scheduler in rpc