using a tool to generate TOC