fixed the build file and codegenerator