src: changed register functions to use multimap_cache, return multiple tokens