update and migration