take handlebars hash into account