sub-sections to TOC, pmkdn on STDIN, more logging, less tmp