added table of contents stage (not yet working)