How tech can save the trees