imported reposync function