fix alt_dual detection and handling