hooked up the generation code with the werkzeug service