add modified bayesactassistant.py