reconstruct the direcotry