flatten out directory structure