Some preliminary work on ProtocolHandler