some upload failsafes