add error exit for bash
add pipefail option
some commits