fixes "get latest" script
updates a bunch of stuff