migrate detect_de