small improvement to exportTabs