more LGF code