added autoMigrate