fixed single-file processing