refine config - use service discovery