reorganizing how threads are loaded, app is crashing when an upload fails