update wsgi process logic