before creating sync engine