pathname to path fix