update loop script and lhs.map