some wsgi fixxes