worked out delayed call to app.add_url_rule