instead of problematic cleanup, now skipping compiling a class if it's
already compiled for the same root.