add adapter monitor to xpdr code