handling underscore templates