add the bail on error option