catch decode errors