have working solution for rendering templates