update local repo at startup