adding fast-path checks to bmat