cleanup after removing commandt