purged decoder and other stuff using zxinging