added some sanity checks on the updates