added template renderer