add method and path to toc label