Generalization is actually simpler than I htought it was, pdf in general case now wraps the more specific case.