export data in a separete file