simplify pathmunge