moved instance to cmd, added clean cmd