path+doc -> path simplification