fixes to lammps loading