pathname parsing wip, not compilable