updated verbose output logic