demo uses middleware
moved make_app to __init__.py