bug fix to propagate bn network into session context - used by random sensor plug