Added connect 2.x compat from issue #60 pull by nathanbowser