moved templating module to services