adding templating system