several were also taking dexamethasone , hoping to stave off the life-threatening advanced stage of acute mountain sickness known as hace , for high altitude cerebral edema , in which ones brain swells and stops working properly .