set transport_uri only when specified