handle leds properly