persist to csv