migration script update. DO NOT USE IT!!!