do smarter checking for csv files