proper path_simplify