more fixes for the read csv functions