added sync API