added awful templating engine