add easyxdm plugin; use global var