rebuilt the directories structure