a wsgi middleware practice