make sure sync won't run simultenously