use pathLocSegments