change REPODIR to TO for uniqness