add sync flag and related events