added codegen validation