refactor structure of code generation modules
refactor configs