initial csv export functionality