men leak in appendTokenlist, just working with a big array right now to avoid the realloc