better connection mechanism