added a missing check for argv length and changed continue to break
as it should be the last run through the loop.

TODO: should check the conditions again, best with attenuator
connected