better management of pdf output files