add support for logic operator.