minor refactor to repoSpec