use the repo_path instead of tmp