migration controller with better line endings