fixed introduced bug by switching to new path class