minor changes
make restarthbf distinguish between HBF0 and THBF