replace read.csv with fread to be detect csv delimiter automatically.