handle decoding errors a bit better