misc. bpatch stuff