added support for P|G conditional max.  (joint is usually best though)