modified WPclientPlugin