initial draft for protocol
added null stub for all the functions in protocol.cpp