fixing things for ext pdf problems