update the directory structure