added saving after pull from ES