initial work on Bayesian network framework