debug with client thread