reconstruct directories