change code to take advantage of added function support in mcmcdb_samples