rework the repo logic to be able to prepare multiple repos