auto connection functionality added