updated ws sync mechanism