tweaks to pdf creation