added sync option