sync

merge read array of diffs, changed sync to not do the loop