modify runOne for general reading of files