adding a thought for an optimization
first draft of new sync, untested