fixed up a bunch of bash