added init method to XPManager