some fixes to protocol to make the generated code compile
some fixes to protocol to make the generated code compile

adamw/remotely,ahjohannessen/remotely,stew/remotely,lech-glowiak/remotely,jedesah/remotely,oncue/remotely,ShengC/remotely,LGLO/remotely