binary and protocol moved to the types module. added protocolToBuffer module