making uploader slightly blocking
got async uploading working