update directory structure