added some bash support