adjust the directory layout.