added basic registering support, matching to secret list in config.secret.js