fix output templating