added some further 'does the paper exist' checks to the preprocessor to avoid dupes