fixed typo
improved logging in migration