added automatic handling of backlight via io