--- a/make_chapters.pl
+++ b/make_chapters.pl
@@ -40,12 +40,21 @@
 ##################################################
 # END OF USER SELECTABLE OPTIONS
 
+##################
+# old TOC file removal
+#
+# toc.txt is generated from =head directives in pod2pdf
+# so remove any old toc.txt files first
+#
+
+if (-e "toc.txt") {unlink "toc.txt"; print "Deleted old toc.txt\n"};
 
 my %config = (
     page_number => 0,
     icon_scale => 0.25,
     title => "Foreward",
     icon => $book_dir."logo2.png",
+    toc => 1
 );
 
 sub make_pdf_wrapper {
@@ -146,7 +155,6 @@
     my $chapter_file = sprintf("Chapter%02d.pdf", $chap_num);
     print "Writing out $header to $chapter_file\n";
 
-
     $config{title} = $header;
     $config{page_number} = $last_page_number;
     ($last_page_number) = make_pdf_wrapper($tmp, $chapter_file);