client upload retry on failure and bug fix to server