copy template from automatic generator