added token and hash functions