cleanup, safe command entering