change to using streams for loading the pdf's