migration error checking