changed templating engine
tightened up config variables