make cmd_check iterable; fix early return in cmd_tag