90% done templating