new connect method
Merge pull request #11 from andrewknowles/work29102014

new connect method