finished architecture and syncing implementation