add clear outstandings in rpc