made the WSGI compatibility layer lazy, nobody uses it anyway and it may be broken, probably should be removed