refactored to Handlebars precompiled templates