small fixes for when uploads go awry