reconstruct directory