changed method from connect to bind