improve .b exception handling