rebuild  directory structure