fixed csv generator, again