hooked up code generation