--debug turns on debug logging now
fix bug with file extensions of capitalized .PDF