implemented our own tokenizer using | as delimiter