added in scanner class from scanner.py