support both=true