bind and connect working