added ability to export data