added uploadDocRetry

tested in dox