commandfactory/loop small change