improved the compile errors handling mechanism