added model_template to generator.generator