a few fixes to get dbn driver working