modified coreCompile