Fixed compatibility with connect API
Merge pull request #12 from Flamefork/master

Add compatibility with connect API