handling upload exceptions mostly