improve secret token generator