improved s:bm_path