fix discovery command