decoding now seems to always complete without errors
not always correctly though