fix private open_csvfile