parsing of BMA segments