thread support to xerror module