add WSGI support