added a edna on/off switch