added multiple file processing