adding support for multivariate leaf distributions