fixes to sync command