add code for merging partial job results