added pdf gen back