support protocol v0.2.1
Merge pull request #2 from doggy/master

updated to support protocol v0.2.1