read bms header