trying to eliminate the pdfviewer dependency