more bash tweaking