adapted to changed niftyled API