update function.php:add token-generator