update directory