more lattice compatibility support
more lattice compatibility support