memory issue fix, add multiway merger object