add spec for rebuild