runtime: using service discovery in runtime