static method "recompile" added for global reuse