more notes on protocols
remove old debug code