SMS: International capital flows and debt dynamics