Adapting agriculture to drought and extreme events