can init extended
led handling modified to reduce code size