return the toc

This will allow programattic usage to generate a `toc`