finished init_scanner