logic to start service discovery