wsgi fixes