flatten out folder structures