pre-rebuild