defunctionalised csv export
harmonise domain names

learned from https://stackoverflow.com/questions/9704213