Improving the resilience of family farmers to climate change