got the toc indexes working, now have to work on the anchors