2nd try with logging, now using an agent
first functioning version of index
but we get some exceptions from pdfbox, even with our
handling of exception in the fn extract-pdf