implemented INPLACEREBUILD