added templating engine