make the template rendering works