remove tailing enclosures from kitCommands
removed unused code