allow debug output to be turned on and off