adding in lattice scripts