update the directories