improved sync to check for changes