added export by shards to CSV