make sync work