renamed getRelativePath to diff