added some bash goodness