added debug sending to debugger