simplify directories