avoid parsing twice when -toc isn't used