filter empty sections to avoid spurious (,)'s in the export list