more watertight command indexing in _foundation: message 184 to remove commands; 182 and 183 ignore duplicates