refactored the compiler and removed execSync