updating file and directory structure