added server side templating