change gevent patching method