initial sync implementation