added logging to migration