new code to use mustache templates