changed how templates are config