added handlebars functionality the hard way