add script to export data.