new WSGI middleware
update documentation