minor fixes: add this to calls
rename function to autodetectCsvType