used pathSegsToStr more often