Merge pull request #2 from randomdrifter/master

Merge pull request #1 from randomdrifter/connectAndSend
Merge pull request #3 from randomdrifter/master

fixing the mess i made