Rewriting protocol.txt