updated to work with newer version of pyzmq