add function for read token in config