updating directory structure and links