updated for use with custom multinest