add general inputs to templates