adds Command interface, toggle mode