reconstruct folder structure