maintain directory structure