New tools for understanding coping and resilience