THERE will be no let-up in the efforts to find the missing Malaysian Airlines jet Najib Razak, Malaysia’s prime minister, vowed on May 5th. Despite his promise, however, there is growing acceptance that it will take months even years to find any trace of flight MH370, which disappeared on March 8th. Hopes that any of its passengers might still be alive must also be cast aside. The new search area in the Indian Ocean will alone cover 60,000 square kilometres (23,000 square miles)—and that is on top of the 4,600,000 square kilometres already scoured. Because the focus of the search-and-rescue mission has now moved to the west coast of Australia, Malaysians have some breathing space to reflect on a traumatic two months in the glare of the world’s attention. The country has taken a battering, but the longer-term damage is another matter. The saga has emphasised how much Malaysia matters in the geopolitics of the region: the two Pacific superpowers, America and China, have both come to play big roles in the search for the missing plane, if in very different ways.

In any reckoning, Malaysia’s handling of the loss of MH370 has been a public-relations disaster. The tone was set during the first week by the authorities’ confusion, stonewalling and contradictory messages. One of the gravest flaws has been a deep reluctance to release information, however innocuous. This antagonised the victims’ families. And the problem persists. On May 1st the Malaysian government published a much-heralded report on the disappearance of the plane. This turned out to consist of just five pages, containing little new information. But, as one government adviser admitted: “If we had got this out there in the first week, there wouldn’t have been a nine-week drumbeat of everyone calling us lying bastards.”

Opposition politicians and critics of the government say that the damage to Malaysia’s reputation is a result of the country’s poor governance. Malaysia, the argument goes, is more authoritarian than democratic, with little transparency or accountability in government.

There is some truth to that. But government officials are justified in feeling frustrated that the failures of communication have overshadowed their success in efficiently putting together an extraordinary coalition of countries to look for the plane. On the technical side, many acknowledge that Malaysia has done an adequate job with the relatively limited means at its disposal. It has also gone beyond the call of duty in opening up to its search partners, sharing sensitive details of its military radar system, for example, with the Chinese.

One person who has stood up for Malaysia over MH370 is Barack Obama. During a recent long-scheduled visit to Malaysia, the American president went out of his way to laud the country’s leadership of the search operation. America has contributed a vast amount of equipment, man-hours and money to the search for the missing plane, out of all proportion to the three Americans (out of 227 passengers) lost on the flight. This has brought the two countries closer, at a time when America is searching for new and reinvigorated alliances in the region. Historically, there has been a good deal of anti-Americanism in Muslim-majority Malaysia, but for the time being that seems to have been stilled. Mr Obama got a hero’s welcome from everyone.

That in turn may help account for the zigzag course of China in the MH370 affair. The flight was en route to Beijing, and over half the passengers were Chinese. But rather than support the Malaysian government in the first month or so, China seemed to incite the distraught families into ever fiercer, often histrionic, criticism of Malaysian officialdom, perhaps to deflect attention from the possibility that the plane might have been downed by home-grown terrorists. The Chinese did nothing to dispel some of the alternative, wilder conspiracy theories circulating in Beijing.

In recent weeks, however, the tone has changed. The Chinese ambassador to Malaysia has told the Chinese-language press in Kuala Lumpur that his country accepts that the disappearance of MH370 was not some dark conspiracy and that Chinese-Malaysian relations are unaffected. The wave of criticism in the official Chinese press has largely abated. Perhaps China feels, in the regional battle of wills with America, that it needs good relations with Malaysia and that these were threatened by its attacks. Malaysia is China’s largest trade partner in the Association of South-East Asian Nations (ASEAN). It also has a large ethnic-Chinese population, and thus could be helpful in its disputes in the South China Sea with other ASEAN countries, such as the Philippines and Vietnam, both firmly backed by America.

Mr Najib makes an official visit to China at the end of this month, marking the 40th anniversary of diplomatic ties between the two countries, initiated by Malaysia’s then prime minister, Abdul Razak, Mr Najib’s late father. With power so finely balanced in the region, China will strive to make the visit go smoothly, including keeping angry families at a face-saving distance.