simplify path munging