add main and stream to TOC