add logging during and after migration