codegen tools minor fix