add withAnyCase convenience method