output to file can read a whole folder