added auto migration.