Revert "Revert "changed xiveley upload to seperate thread""

This reverts commit af441a1bc5b5b39af027f00194fdbfffacf04209.