add joint debug