bpopup monkey patch