write client using gevent
little bits