tons of bash bug fixes and the like