stable tokenizer and factory