In the case of the Mexican and Asian crises, the Fund and the World Bank provided most of the resources and in so doing faced the criticism that they bailed out western banks.
To avoid this and to preclude prolonged negotiations with creditors the international community embarked on an intense search for a sovereign debt resolution model - essentially a kind of bankruptcy court for countries. The idea is that countries in acute financial crisis can have an orderly debt workout so that they quickly start a process of recovery, not over-encumbered by debt.