bugfix that made the server to not register tokens