used gevent patch all on mining process