entities update script