code generation only missing the xml stuff