added the ability to toggle sync