fix connecting to and registering with sockethub