use pointers to tokens and hexmaps