remove the protocol tail