backend with template