cleanup of debug code to get rid of noise in leds