updated BM processing scripts