finish debugging upload procedure