cleaning before rebuild takes over