udpated is connected and connecting functions

Ignore-this: 5b54a392e435d59e049ccbe8bd1f4fc1

darcs-hash:20131118031947-c21fe-02460dd6d8f5b0abe7e9e09167d338a51787d6da