handle error with reading csv