update toc fetching script