shells: restoring history syncing