started implementing sendDebug