improved csv parsing. a workaround for inconsistent delimiters