correctly tries to connect