export object to csv