sync document