rebuilding of the pdfapi for simplier testing