added use_reloader=False to app.run calls to prevent the functional tests running themselves two extra times