fix multiple readers and multiple input files.