control debug messages