main: selective uploading