directories are moved to top level