add support for template setting