works with new pybasicbayes abstractions