improved LED control