added handlebars render. some other misc fixes