cmd cleanup