replace ProtocolType with String