updated code associated with zeromq sockets and contexts