partial completed scanner_init(), still needs to find keyword