exporting and uploading