more wsgi fixes