first workign channel commit
gevent-friendly channel hook