added support for repo discovery