buffer to protocol first implementation
added bufferToProtocol to the full build