added csv exporter and field validation