updates directory structure