command: various cleanup