allow turning on/off validation and debug message