made compatible with ZMQ v2