added sync api