fix case sensitive checking
address comments
address comments
Merge pull request #2 from devoncarew/connect

fix case sensitive checking