fix fallback logic for relay_host