use ruby's csv module instead of handrolling