replace Path with pathos