updated export to require sub-folders.