added token generation cache
added somewhat incomplete mock token generatro