fix service discovery