Re-operating dams for environmental flows