added support for using only 2 repositorys