add model code generator