basic history syncing; likely performance problems though