excel/csv export fixes