added service discovery to the hosting process