Fix protocol version support
Merge pull request #8 from egeloen/protocol-version

Fix protocol version support