add option for not stopping on the first decoding error