fix decoders and ScannerReader