add support for flexible publisher with boolean condition