updated hub connection functionality