adapted to lf4.2