fix wait on long running uploads to finish