added debugging to resolve migration issues. helps #355