export data and mask