add genPDF and findStart methods