main function added to DevDiscovery for testing