rebuilt the directory tree