improved logic for passthrough mode based on what is connected