How to build resilience when times get tough