update way to override function of extractor.py