added demoDiscoverErgs