script tokenizer