configure the scanner correctly john