MBH: cleaning up bash