Rewiring the brain to build resilience and resolve