toc handling starting to work