fixed a lot  of issues, but still not passing reliably. sh.latest randomly reverts to 0 for no known reason