made calculation of path overlaps optional (default is not to do it)