updated lf script