From adaptation to building resilience