add WSGI support in local