load template files via environment