Managing water and agroecosystems for food security