Risk and resilience in development