add support for chained conditions