changing setFlags of typed filters to return a boolean instead of throwing