added sync mode