fixing zmq subscriber problems and writing filter for processes