saving response before generating csv row, fixes #307