improvements to communication protocol implementation