moved toCsv() conversion to event storage