fixed a few bugs with HBART, but trying to trace down the main one now