some stuff and remote handlebars handling