fixed for new protocol
Merge pull request #13 from ivan101/patch-1

fix for new protocol, thanks ivan :-)