fix discovery config