1.fix correlator to be an object
2.adding missing util funtions