tested middleman methods in app.py