make service discovery return concrete class