implemented state restoration protocols