added dimmer support