add csv export support and associated tests