PathDiff improvements