add switch for two way sync