register : catch token in config file