add a bunch of debugging around threading of uploads