restore directory structure