draft of protocol simylation & debugger