fix: externalize template