adding a retry to file uploads and reader adding to get around an unexplained error during uploading