added check_repos function