unified the code generator.