added insert cmd mode