more debugging features for ref_bitmapping