ability to turn on toc using config metadata.  fixed #9