fix wsgi after reorganization