How I turned a crisis into an opportunity