cmdtable cleanup