switch to diff mode automatically