cleanup zmq imput, move correlation methods to better place