added a setter for torch mode