support matcher switch during scanning.