added getRelativePath and splitPath