pre migrate