added pre-scan version to infile output