check input to DBNs, fixes #40