recreate the directory tree