added bool for PDF stuff