def get_cmnd(zelf, *args, **kwargs):
    """ determine the command in the zelf.txt attribute, if present. """
    from oor import kernel
    if 'txt' in zelf and zelf.txt:
        val = zelf.txt.split()[0]
        if not val:
            return
        if 'cc' in zelf:
            if val[0] != zelf.cc:
                return
            val = val[1:]
        try:
            cmnd = kernel.cmnds[val]
        except KeyError:
            try:
                cmnd = kernel.ctrl[val]
            except KeyError:
                cmnd = None
        return cmnd
