first pass at sync management
sync function