added sync functionality