initialize the scanner.
Lei should help me to test it in real.