restoring from cache