reconstruct dirs