use new discovery API