added event tracking to sync