fixed protocol problems
Merge pull request #1 from burriep/master

fixed protocol problems