added reading hb format and test