add support for reversing diffs