minor fixes to sync