add option to just loop infinitely without contacting command proxy

and fix some style issues