fixes to bdj file