added sync endpoint