added client debug script