rewrite poller to be compatile with jzmq