added is_connected()