add check that prevents multiple syncs at once