adding support for mltivalued OR and AND