support for multiple protocol
Merge pull request #5 from paulczar/master

support for multiple protocol