solve and substance commands