split update and data script