updated bash with more from Dushan