modify dir structure.