integrated backend into template