fixes to repo sync process