cover the case when running rebuild or passing revision