fully populate template file when autogenerating.