coro and gevent improvements