add code to use new binomial and beta-binomial error distributions