update and migrate