try to implement connect