found some problems with the regex tokenizer. now loops infinitely