fix integer casting for slot and enclosure ids
implement led support