allow changing of tokenizer factory