fix a bunch of dumb small errors