add check to repo update